Global Variables
Global variables are defined globally in the context of the TPT installation, independent of the TPT project. They are used to specify settings for a TPT installation such as installation path or project path that can be used in all TPT projects you open with this TPT installation.
Global variables are declared and initialized in the TPT Tool Preferences dialog, see General Settings - Variables. To display them in the test report, select the Show in Report checkbox in this dialog.
Global variables are stored in the global tpt.config
file which is stored in the <AppData>/Local/TPT
folder. They can be used in many places in TPT if you use the following syntax: ${<global_variable_name>}
.
${<global_variable_name>}
is case-sensitive. The autocompletion feature (shortcut Ctrl+Space) is available at all places where you can use a global variable, for example, in the Report sections of the Execution configuration dialog .